//
//  Bullet.m
//  飞机大战
//
//  Created by sfk-ios on 2017/12/1.
//  Copyright © 2017年 sfk-JasonSu. All rights reserved.
//

#import "Bullet.h"

#define kDamageNormal       1
#define kDamageEnhanced     2

@implementation Bullet

+ (id)bulletWithPosition:(CGPoint)positon isEnhanced:(BOOL)isEnhanced
{
    Bullet *b = [[Bullet alloc]init];
    
    b.position = positon;
    b.isEnhanced = isEnhanced;
    
    b.damage = isEnhanced ? kDamageEnhanced : kDamageNormal;
    
    return b;
}

@end
